<!----------------引入头部文件-------------------->
<include file="Common/title" />
<style>
    .mui-content>.mui-table-view:first-child {
        margin-top: 2px;
    }
    .val{
        color:#fe6c00;
    }
    .ultype{
        margin:1px 0 8px;
    }
    .p1{
        font-size:0.7em;
    }
    .del_img{
        position:absolute;
        top:50px;
        left:270px;
    }
</style>
<script>
    mui.init();
</script>
</head>
<body>
<header class="mui-bar mui-bar-nav">
    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
    <h1 class="mui-title">我的收藏信息</h1>
</header>
<div class="mui-content">
    <ul class=" mui-table-view mui-table-view-striped mui-table-view-condensed ultype">
        <?php if(!$info){ ?>
        <li class="mui-table-view-cell ulli" >
            <div class="mui-table">
                <div class="mui-table-cell mui-col-xs-10">
                    <a href="javascript:void(0);" style="color:black">根据你的筛选条件未查询到数据！</a>
                </div>
            </div>
        </li>
        <?php }else{ foreach($info as $k=>$v){ ?>
        <li class="mui-table-view-cell ulli"  wzno="<?php echo $v['wzno'];?>">
            <div class="mui-table">
                <div class="mui-table-cell mui-col-xs-10">
                    <!--<img class="del_img" src="__PUBLIC__/images/remove.png" width="20px" alt="">-->
                    <a href="javascript:void(0);" style="color:black"><?php echo $v['wzmc']; ?></a>
                    <p class="mui-h6 mui-ellipsis p1">型号　　：<span class="val"><?php echo $v['dhbs'][0]; ?></span></p>
                    <p class="mui-h6 mui-ellipsis p1">质量等级：<span class="val"><?php echo $v['dhbs'][1]; ?></span></p>
                    <p class="mui-h6 mui-ellipsis p1">型号规格：<span class="val"><?php echo $v['dhbs'][2]; ?></span></p>
                    <p class="mui-h6 mui-ellipsis p1">所属分类：<span class="val"><?php echo $v['flmc']; ?></span></p>
                    <p class="mui-h6 mui-ellipsis p1">供货商　：<span class="val"><?php echo $v['qc']; ?></span></p>
                </div>
            </div>
        </li>
        <?php }} ?>
    </ul>
</div>

<div style="height:50px;border:1px solid #EFEFF4"></div>
<!-------------底部导航开始---------------->
<include file="Common/nav"/>
</body>
</html>
<script>
    //点击每个单品跳转函数
    function abc(){
        var wzno = this.getAttribute('wzno');
        window.location.href = "<?php echo U('Index/detail','',false);?>/wzno/"+wzno;
    }
    mui.ready(function(){
        //给ul绑定点击事件,这里用mui的tag事件,不能用click
        mui('.ultype').on('tap','li',abc);
    })
</script>